package com.niit.happynicedays;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;

public class mainmenu extends Activity {

	ImageView imNiceday, imOption, imHelp, imAbout,imExit;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		setContentView(R.layout.mainmenu);

		imNiceday = (ImageView) findViewById(R.id.niceday);
		imOption = (ImageView) findViewById(R.id.option);
		imHelp = (ImageView) findViewById(R.id.help);
		imAbout = (ImageView) findViewById(R.id.about);
		imExit=(ImageView) findViewById(R.id.exit);
		imNiceday.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				imNiceday.setImageResource(R.drawable.niceday2);
				Intent intent = new Intent(getBaseContext(), nicedays.class);
				startActivity(intent);
				finish();

			}
		});
		imExit.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub				
				imExit.setImageResource(R.drawable.exit2);
				System.exit(0);
				
				
			}
		});
		imOption.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				imOption.setImageResource(R.drawable.option2);
				Intent intent = new Intent(getBaseContext(), option.class);
				startActivity(intent);
				finish();
			}
		});
		imHelp.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				imHelp.setImageResource(R.drawable.help2);
				Intent intent = new Intent(getBaseContext(), help.class);
				startActivity(intent);
				finish();
			}
		});
		imAbout.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				imAbout.setImageResource(R.drawable.about2);
				Intent intent = new Intent(getBaseContext(), about.class);
				startActivity(intent);
				finish();
			}
		});
	}

}
